.cont {
  display: flex;
  flex-direction: column;
  height: 100%;
  .head {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px 24px;
  }
  .main {
    flex: 1;
    padding: 0 24px 24px;
    overflow: hidden scroll;
  }
  .quarterPickerBox {
    width: 230px;
  }
}

.chartHead {
  display: flex;
  justify-content: space-between;
  height: 40px;
  .title {
    display: flex;
    align-items: baseline;
    padding-top: 5px;
    font-size: 16px;
    line-height: 22px;
    .titleSub {
      margin-left: 0.5em;
      font-size: 14px;
      line-height: 1;
    }
    .unit {
      margin-left: 16px;
      color: #888e95;
      font-size: 12px;
      line-height: 1;
    }
  }
  .subTitle {
    padding-top: 5px;
    font-size: 14px;
    line-height: 20px;
  }
}
.sonWrap {
  padding-top: 16px;
}

.box {
  padding: 16px;
  border-radius: 8px;
}
.tableHead {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  &_name {
    margin-right: 16px;
    color: #a7a8a9;
    font-size: 12px;
    line-height: 22px;
  }
}
.tableWrap {
  max-height: 100%;
  overflow: hidden auto;
}

html[data-type-color='dark'] {
  .main {
    :global {
      .ant-collapse-header {
        padding: 0 !important;
      }
    }
  }
  .quarterPicker {
    :global {
      .ant-picker-year-panel,
      .ant-picker-quarter-panel {
        width: 230px;
      }

      // 修改选中的年份、季度背景颜色
      .ant-picker-cell-selected {
        .ant-picker-cell-inner {
          background: #5788ff;
        }
      }

      // 使用CSS改变季度选择器的内容
      .ant-picker-quarter-panel {
        .ant-picker-content {
          // 使季度选择器可以换行成两排
          tr {
            display: flex;
            flex-wrap: wrap;
          }

          // 控制按钮外层宽度，使器溢出换行
          td {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50%;
            height: 50px;
            padding: 20px;
          }
        }

        // 使before伪元素和按钮背景颜色一致
        .ant-picker-cell-selected {
          &::before {
            color: #fff;
            background: #5788ff;
          }
        }

        // 控制伪元素所占宽度
        .ant-picker-cell {
          &::before {
            right: auto;
            left: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60%;
          }
        }

        // 隐藏季度选择器的按钮，用伪元素代替
        .ant-picker-cell-inner {
          display: none;
        }

        // 根据title更换相应伪元素的content，使其代替原本的按钮
        .ant-picker-cell[title$='-Q1'] {
          &::before {
            content: '1季度';
          }
        }

        .ant-picker-cell[title$='-Q2'] {
          &::before {
            content: '2季度';
          }
        }

        .ant-picker-cell[title$='-Q3'] {
          &::before {
            content: '3季度';
          }
        }

        .ant-picker-cell[title$='-Q4'] {
          &::before {
            content: '4季度';
          }
        }
      }
    }
  }
}
